package artist

func NewArtistInfo(userID string, cardId int32) (map[string]interface{}, error) {
	var ret = make(map[string]interface{}, 0)
	logic := NewArtistLogic()
	artisList, err := logic.NewArtistInfo(userID, cardId)
	if err != nil {
		return ret, err
	}
	ret["artist_list"] = artisList
	return ret, nil
}
func ArtistList(userID string) (map[string]interface{}, error) {
	var ret = make(map[string]interface{}, 0)
	logic := NewArtistLogic()
	artisList, err := logic.ArtistList(userID)
	if err != nil {
		return ret, err
	}
	ret["artist_list"] = artisList
	return ret, nil
}
func RandNum(userID string, cardId int32, skillId int32) (map[string]interface{}, error) {
	var ret = make(map[string]interface{}, 0)
	logic := NewArtistLogic()
	artisList, err := logic.RandNum(userID, cardId, skillId)
	if err != nil {
		return ret, err
	}
	ret["artist_list"] = artisList
	return ret, nil
}
func UnLockArtistBeautySkill(userID string, cardId int32, skillId int32) (map[string]interface{}, error) {
	var ret = make(map[string]interface{}, 0)
	logic := NewArtistLogic()
	artisList, err := logic.UnLockArtistBeautySkill(userID, cardId, skillId)
	if err != nil {
		return ret, err
	}
	ret["artist_list"] = artisList
	return ret, nil
}
func GiveBeauty(userId string, cardId int32, itemId, itemNum int) (map[string]interface{}, error) {
	logic := NewArtistLogic()
	ret, err := logic.GiveBeauty(userId, cardId, itemId, itemNum)
	if err != nil {
		return ret, err
	}
	return ret, nil
}
func PublicizeBeauty(userId string, num int) (map[string]interface{}, error) {
	logic := NewArtistLogic()
	ret, err := logic.PublicizeBeauty(userId, num)
	if err != nil {
		return ret, err
	}
	return ret, nil
}
func UpArtistBeautyLv(userID string, cardId int32, step int64) (map[string]interface{}, error) {
	var ret = make(map[string]interface{}, 0)
	logic := NewArtistLogic()
	artisList, err := logic.UpArtistBeautyLv(userID, cardId, step)
	if err != nil {
		return ret, err
	}
	ret["artist_list"] = artisList
	return ret, nil
}
func GetBeautyLvByUidCardId(userId string, cardId int32) (map[string]interface{}, error) {
	var ret = make(map[string]interface{}, 0)
	logic := NewArtistLogic()
	artisList, err := logic.GetBeautyLvByUidCardId(userId, cardId)
	if err != nil {
		return ret, err
	}
	ret["config"] = artisList
	return ret, nil
}
func UpdateBeautyYinXiaoId(userId string, cardId int32, yinXiaoId int64) {
	logic := NewArtistLogic()
	logic.UpdateYinXiaoId(userId, cardId, yinXiaoId)
}
